GBML manual / Constants

BLEND_VIGNETTE

A vignette: a see-through thing is weakest across the middle of the screen and strongest at the top and the bottom.

Works differently on Game Boy - A blend look on the Game Boy decides how often a see-through sprite is drawn on each row and fades a see-through picture in bands; see screen_blend.

Works differently on Game Boy Color - A blend look on the Game Boy Color decides how often a see-through sprite is drawn on each row and how much a see-through picture fades; see screen_blend.

Sega Genesis: not built yet

On other consoles this differs: see Side by side and How the consoles differ.

Syntax

BLEND_VIGNETTE: constant

<!-- GENERATED by tools/gbabel_looks.py from its LOOKS registry. Never edit this page: change the registry and re-run it. -->

Description

Names the vignette, for screen_blend. A see-through thing shows least across the middle of the screen and more and more toward its top and bottom edges. Make the see-through thing dark and the edges of the screen darken, the way a camera lens does. Make it a mist and the edges go foggy.

strength is how strong the edges are and how clear the middle is: at 1 the edges are about half there, at 2 three quarters, and at 3 the very first and last rows show nothing but the see-through thing.

A real capture, four pictures of the same pine forest at dusk with a striped lighthouse standing in it, in a dark room - first with the room's even darkness, then with BLEND_VIGNETTE at strength 1, 2 and 3 (the middle of the screen gets clearer and the top and bottom get darker each time, until at strength 3 the very edges are black)A real capture, four pictures of the same pine forest at dusk with a striped lighthouse standing in it, in a dark room - first with the room's even darkness, then with BLEND_VIGNETTE at strength 1, 2 and 3 (the middle of the screen gets clearer and the top and bottom get darker each time, until at strength 3 the very edges are black)
A real capture, four pictures of the same pine forest at dusk with a striped lighthouse standing in it, in a dark room - first with the room's even darkness, then with BLEND_VIGNETTE at strength 1, 2 and 3 (the middle of the screen gets clearer and the top and bottom get darker each time, until at strength 3 the very edges are black)

The same picture four times: straight, then strength 1, 2 and 3 from left to right, each one standing still where the pattern had got to. Real pictures from a Game Boy Advance ROM.

This look stands still, so speed does nothing for it.

In a dark room the look keeps the room's own darkness: it is a shape laid on the number you set, so the screen is on average as dark as the room says and the look moves the darkness around (no row is darker than black). In a room that is not dark the look's own numbers are what decide.

Example

shade = background_create(0, 0, ts_doc_dungeon);
background_see_through(shade, true);
background_priority(shade, 0);
screen_blend(BLEND_VIGNETTE, 2, 0);

Dark edges at the top and the bottom of the screen, clear in the middle. Call it once, for example when the room starts - it keeps going by itself until you call screen_blend(BLEND_NONE, 0, 0) or a room is loaded.

See also: screen_blendBLEND_NONEBLEND_FADE_DOWN